
package com.benimetum.items;

import java.util.Date;

/**
 *
 * @author Ethem Cem Ozkan
 * @email ethemcem.ozkan@gmail.com
 * No 07110604
 */
public class Event
{
    private String id;
    private String text;
    private Date date;
    private Student[] students;
    private Teacher teacher;//yaratan
    private Course course;// gönderildiği
    private Community community; //gönderildiği

    public Event(String id, String text, Date date, Student[] students, Teacher teacher) {
	  this.id = id;
	  this.text = text;
	  this.date = date;
	  this.students = students;
	  this.teacher = teacher;
	  this.course = null;
	  this.community = null;
    }

    public Event(String id, String text, Date date, Student[] students, Teacher teacher, Course course) {
	  this.id = id;
	  this.text = text;
	  this.date = date;
	  this.students = students;
	  this.teacher = teacher;
	  this.course = course;
	  this.community = null;
    }

    public Event(String id, String text, Date date, Student[] students, Teacher teacher, Community community) {
	  this.id = id;
	  this.text = text;
	  this.date = date;
	  this.students = students;
	  this.teacher = teacher;
	  this.course = null;
	  this.community = community;
    }
    
    
    public Community getCommunity() {
	  return community;
    }

    public Date getDate() {
	  return date;
    }

    public Course getCourse() {
	  return course;
    }

    public String getId() {
	  return id;
    }

    public Student[] getStudents() {
	  return students;
    }

    public Teacher getTeacher() {
	  return teacher;
    }

    public String getText() {
	  return text;
    }

    public void setCommunity(Community community) {
	  this.community = community;
    }

    public void setDate(Date date) {
	  this.date = date;
    }

    public void setCourse(Course course) {
	  this.course = course;
    }

    public void setId(String id) {
	  this.id = id;
    }

    public void setStudents(Student[] students) {
	  this.students = students;
    }

    public void setTeacher(Teacher teacher) {
	  this.teacher = teacher;
    }

    public void setText(String text) {
	  this.text = text;
    }
}
